package com.recording.system.events;

import java.util.Date;

public class RecordingSystemEvent {
	private Date date;
	private int id;
	private RecordingSystemEventKind kind;
	private String message;
	private static int globalId = 0;
	private Object ExtraData = null;

	/**
	 * @return the extraData
	 */
	public Object getExtraData() {
		return ExtraData;
	}

	/**
	 * @param extraData the extraData to set
	 */
	public void setExtraData(Object extraData) {
		ExtraData = extraData;
	}

	public Date getDate() {
		return date;
	}

	public int getId() {
		return id;
	}

	public RecordingSystemEventKind getKind() {
		return kind;
	}

	public String getMessage() {
		return message;
	}

	/**
	 * @param kind
	 * @param date
	 * @param message
	 */
	public RecordingSystemEvent(RecordingSystemEventKind kind, String message) {
		this.id = globalId;
		globalId++;
		this.kind = kind;
		this.date = new Date();
		this.message = message;
	}
}
